#include<iostream>
#include<vector>

using namespace std;

int main (int argc, char **argv) { 
vector <int> v;
int kol1;
int kol2;
kol1=0;
kol2=0;
while (1) {
cout << "v[" << v.size() << "]=";
int i;
cin >> i;
if (0==i) break;
if (i%2==0) {kol1=kol1+1;};
if (i%2==1) {kol2=kol2+1;};
v.push_back(i);
;
}
cout <<"chethih=" << kol1 <<"\n";
cout <<"nechetnih=" << kol2 <<"\n";
return 0;

}
